local RxTable = {}

function RxTable:assign(tab1, tab2)
  if not tab2 then return tab1 end

  for k,v in pairs(tab2) do
    tab1[k] = v
  end
  return tab1
end

function RxTable:add(tab1, tab2)
  if not tab2 then return tab1 end

  local index = RxTable:len(tab1)

  for k,v in pairs(tab2) do
    index = index + 1
    tab1[index] = v
  end
  return tab1
end

function RxTable:len(utable)
  local count = 0
  if utable == nil then
    return count
  end
  if type(utable) ~= 'table' then
    return count
  end
  count = rawlen(utable)
  count = count or 0
  return count
  -- for k,v in pairs(utable) do
  --     count = count + 1
  -- end
  -- return count
end

return RxTable